package com.weng.platform.article.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weng.framework.core.exception.GlobalServiceException;
import com.weng.framework.core.model.ResponseData;
import com.weng.platform.article.entity.ArticleInfo;
import com.weng.platform.article.model.request.ArticleInfoReq;
import com.weng.platform.article.model.vo.ArticleInfoDetailVo;
import com.weng.platform.article.model.vo.ArticleInfoEditVo;


/**
 * 新闻资讯基本信息表 服务接口
 *
 * @author wenghui
 * @date 2019-11-30 10:48:30
 *
 */  
public interface IArticleInfoService extends IService<ArticleInfo> {

	/**
	 * 获取新闻详细信息
	 * @param id 新闻Id
	 */
	public ArticleInfoDetailVo getArticleInfoDetail(String id);


	/**
	 * 新建单个
	 */
	public ArticleInfo add(ArticleInfoEditVo newsEditVo) throws GlobalServiceException;


	/**
	 * 更新
	 */
	public int update(ArticleInfoEditVo newsEditVo) throws GlobalServiceException;

	
	/**
	 * 删除
	 */
	public ResponseData removeByIds(String ids);

	/**
	 *  列表查询base
	 *  <p>
	 *      自定义列表查询：需实现定制化业务，组合查询，多分页查询等
	 */
	IPage<ArticleInfoDetailVo> list(Integer pageNo, Integer pageSize, ArticleInfoReq paramData);

}
